<?php

/**
 * 
 * index controller
 * @author alang
 *
 */
class Index extends Base_Controller{
	
	public function __construct()
	{
		parent::__construct();
		$this->top(1);
	}
	
	public function Index()
	{
		$this->load->model( 'category_mdl','category' );
		$data['title'] = 'testtitle';
		$data['category'] = $this->_topdata;
		
		//共享
		$this->load->model( 'files_mdl', 'files' );
		$share = array();
		$share = $this->files->getFilesList(  false, 0, 0, 'DESC' ,1);
		$data['share'] = $share;
		
				
		$chuangzuo = $this->files->getFilesList(  false, 0, 0, 'DESC' ,2);
		$data['chuangzuo'] = $chuangzuo;
		
		$this->load->view( 'index',$data );		
	}
	
}